<template>
  <div>
    <form ref="form">
      请输入用户名：
      <input type="text" placeholder="用户名" name="username" v-model="form.username" />
      请输入用户密码：
      <input type="text" placeholder="密码" name="password" v-model="form.password"/>
    </form>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      form:{
      username:'',
      password:''
      }
    }
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    change() {
      console.log(this.form.username,this.form.password);

     this.form={
       username:'',
      password:''
     }
    },
  },
}
</script>

<style scoped></style>
